import Http from "../Http";
import {stringify} from "qs";

// 管理员对用户的增删改查充值
export default {
    lists(data = {}) {
        return Http.get("/crs/user", data)
    },
    info(id) {
        return Http.get(`/crs/user/${id}`)
    },
    charge(data) {
        return Http.post("/crs/pay/record/chargeBalance", stringify(data))
    },
    create(data) {
        return Http.post("/crs/user/register", stringify(data))
    },
    update(data) {
        return Http.put("/crs/user", stringify(data))
    }
}
